//
//  HorizontalSlider.h
//  Guazi
//
//  Created by koolearn on 11-4-18.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kHorizontalSliderTotalHeight 34
#define kHorizontalSliderTotalWidth 180
#define kHorizontalSliderBorder 1

#define kHorizontalSliderButton kHorizontalSliderTotalHeight - kHorizontalSliderBorder
#define kHorizontalSliderTop kHorizontalSliderBorder
#define kHorizontalSliderHeight kHorizontalSliderTotalHeight - 2*kHorizontalSliderBorder


@interface HorizontalSlider : UIView {
	
	UIButton* leftButton;
	UIButton* rightButton;
	
	UILabel*  title1;
	UILabel*  title2;
	NSInteger currentLabelIndex;
	UIView*	  boxView;
	
	NSArray* titles;
	NSInteger currentPosition;
	
	id delegate;

}


@property (nonatomic, retain) UIButton* leftButton;
@property (nonatomic, retain) UIButton* rightButton;
@property (nonatomic, retain) UILabel* title1;
@property (nonatomic, retain) UILabel* title2;
@property (nonatomic, retain) UIView* boxView;
@property (nonatomic, retain) NSArray* titles;
@property (nonatomic, retain) id delegate;


- (id)initWithFrame:(CGRect)frame delegate:(id)aDelegate titles:(NSArray*)pairs ;


@end
